<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>联系我们 - milkcode</title>
    <link rel="stylesheet" href="/styles.css">
    <link rel="stylesheet" href="contact.css">
    <script th:if="${session.user == null}" src="/js/ad.js"></script>
    <style>
        .contact-page {
            margin-top: 90px;
            padding-top: 2rem;
        }
        @media (max-width: 600px) {
            .contact-page {
                margin-top: 180px;
            }
        }

        .contact-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .about-section, .contact-info {
            background: white;
            border-radius: 12px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 2rem;
            margin-bottom: 2rem;
        }

        .about-content {
            display: flex;
            gap: 2rem;
            margin-top: 1.5rem;
        }

        .about-text {
            flex: 1;
        }

        .about-stats {
            display: flex;
            gap: 2rem;
            margin-top: 2rem;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            display: block;
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }

        .stat-label {
            color: #64748b;
            font-size: 0.875rem;
        }

        .mission-list, .features-list {
            list-style: none;
            padding-left: 0;
            margin: 1rem 0;
        }

        .mission-list li, .features-list li {
            margin-bottom: 0.5rem;
            padding-left: 1.5rem;
            position: relative;
        }

        .mission-list li::before, .features-list li::before {
            content: '•';
            color: var(--primary-color);
            position: absolute;
            left: 0;
        }

        .contact-methods {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .contact-method {
            display: flex;
            gap: 1rem;
            align-items: flex-start;
        }

        .method-icon {
            color: var(--primary-color);
            flex-shrink: 0;
        }

        .method-content h3 {
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }

        .qrcode-container {
            margin-top: 1rem;
        }

        .qrcode-image {
            max-width: 200px;
            border-radius: 8px;
            margin-bottom: 0.5rem;
        }

        .qrcode-tip {
            color: #64748b;
            font-size: 0.875rem;
        }

        @media (max-width: 768px) {
            .about-content {
                flex-direction: column;
            }

            .about-stats {
                flex-wrap: wrap;
                justify-content: center;
            }

            .stat-item {
                flex: 1 1 150px;
            }

            .contact-methods {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .about-section, .contact-info {
                padding: 1.5rem;
            }

            .stat-item {
                flex: 1 1 100%;
            }

            .qrcode-image {
                max-width: 150px;
            }
        }
    </style>
</head>
<body>
    <header>
        <div class="header-content">
            <h1>milkcode</h1>
            <nav class="header-nav">
                <div class="search-container">
                    <input type="text" class="search-input" placeholder="搜索资源...">
                    <svg class="search-icon" viewBox="0 0 24 24">
                        <path fill="currentColor" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
                    </svg>
                </div>
                <div class="nav-buttons">
                    <a href="/" class="nav-link">返回首页</a>
                    <a href="login" class="login-btn">登录去广告</a>
                    <a href="contact" class="contact-btn active">
                        <span>联系我们</span>
                        <svg class="contact-icon" viewBox="0 0 24 24" width="18" height="18">
                            <path fill="currentColor" d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
                        </svg>
                    </a>
                </div>
            </nav>
        </div>
    </header>

    <main class="contact-page">
        <div class="contact-container">
            <div class="about-section">
                <h2>关于我们</h2>
                <div class="about-content">
                    <div class="about-text">
                        <p>我们是一个致力于分享优质资源的平台，成立于2022年。我们的使命是：</p>
                        <ul class="mission-list">
                            <li>为用户提供高质量的学习资源</li>
                            <li>促进知识分享与交流</li>
                            <li>打造开放、友好的学习社区</li>
                        </ul>
                        <p>通过我们的平台，您可以：</p>
                        <ul class="features-list">
                            <li>获取精选的学习资料</li>
                            <li>参与社区讨论</li>
                            <li>分享您的经验和见解</li>
                        </ul>
                    </div>
                    <div class="about-stats">
                        <div class="stat-item">
                            <span class="stat-number">1000+</span>
                            <span class="stat-label">活跃用户</span>
                        </div>
                        <div class="stat-item">
                            <span class="stat-number">5000+</span>
                            <span class="stat-label">优质资源</span>
                        </div>
                        <div class="stat-item">
                            <span class="stat-number">98%</span>
                            <span class="stat-label">用户满意度</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="contact-info">
                <h2>联系我们</h2>
                <p class="contact-desc">如果您有任何问题或建议，请随时与我们联系</p>
                
                <div class="contact-methods">
                    <div class="contact-method">
                        <svg class="method-icon" viewBox="0 0 24 24" width="24" height="24">
                            <path fill="currentColor" d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
                        </svg>
                        <div class="method-content">
                            <h3>电子邮件</h3>
                            <p>contact@example.com</p>
                        </div>
                    </div>

                    <div class="contact-method">
                        <svg class="method-icon" viewBox="0 0 24 24" width="24" height="24">
                            <path fill="currentColor" d="M8.691 2.188C3.891 2.188 0 5.476 0 9.53c0 2.212 1.17 4.203 3.002 5.55a.59.59 0 0 1 .213.665l-.39 1.48c-.019.07-.048.141-.048.213 0 .163.13.295.29.295a.328.328 0 0 0 .168-.054l1.903-1.114a.864.864 0 0 1 .718-.098 10.16 10.16 0 0 0 2.837.403c.276 0 .543-.027.811-.05-.856-2.563.193-5.362 2.474-6.975 2.182-1.552 5.182-1.552 7.364 0 2.182 1.552 3.23 4.35 2.375 6.914.95.227 1.945.227 2.895 0 4.8 0 8.691-3.288 8.691-7.342 0-4.054-3.891-7.342-8.691-7.342zM5.786 7.813c.542 0 .982.44.982.982 0 .542-.44.982-.982.982-.542 0-.982-.44-.982-.982 0-.542.44-.982.982-.982z"/>
                        </svg>
                        <div class="method-content">
                            <h3>公众号</h3>
                            <div class="qrcode-container">
                                <img src="GZH.jpg" alt="微信二维码" class="qrcode-image">
                                <p class="qrcode-tip">扫码添加公众号留言</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <footer>
        <p>© 2024 milkcode. All rights reserved.</p>
    </footer>
</body>
</html> 